ImagXpress 13 for .NET - User Guide > How To > Load an Image > Load Image from Stream |
Prior to loading an image, set the LoadOptions to provide specific instructions for loading the image. If no load options are specified, ImagXpress® uses default values when loading the image.
To load an image from a memory or file stream, use the ImageX.FromStream methods. When called, the FromStream methods store a copy of the original image in the ImageX object.
The ImageStatusEvent and ProgressEvent events are raised to provide feedback on the status of the loading process. Once loading is complete, the image is available in the ImageX object.
To load a BLOB (Binary Large Object), use the ImageX.FromStream method. |
To load a file from an Internet stream, use the ImageX.FromFile method, specifying the full Internet path and file name, NOT the FromStream method. |
ImagXpress supports the following multi-page image formats: PDF, TIFF, ICO, and DCX. The NumPages method provides the number of pages in the file.
To load the entire multi-page file into an ImageX object, call any of the following:
FromStream(ImagXpress,Stream)
To load only one specified page of a multi-page image into the ImageX object, call one of the following:
FromStream(ImagXpress,Stream,Int32)FromStream(ImagXpress,Stream,Int32,LoadOptions)